package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 商家
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2025-03-01 16:21:06
 */
@TableName("merchant")
public class MerchantEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public MerchantEntity() {
		
	}
	
	public MerchantEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
    @TableId
	private Long id;
	/**
	 * 商家编号
	 */
					
	private String merchantnumber;
	
	/**
	 * 密码
	 */
					
	private String password;
	
	/**
	 * 商家名称
	 */
					
	private String merchantname;
	
	/**
	 * 图片
	 */
					
	private String pictures;
	
	/**
	 * 联系电话
	 */
					
	private String contactnumber;
	
	/**
	 * 商家地址
	 */
					
	private String merchantaddress;
	
	/**
	 * 经营范围
	 */
					
	private String businessscope;
	
	/**
	 * 收藏数
	 */
					
	private Integer storeupnum;
	
	/**
	 * 余额
	 */
					
	private Double money;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：商家编号
	 */
	public void setMerchantnumber(String merchantnumber) {
		this.merchantnumber = merchantnumber;
	}
	/**
	 * 获取：商家编号
	 */
	public String getMerchantnumber() {
		return merchantnumber;
	}
	/**
	 * 设置：密码
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	/**
	 * 获取：密码
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * 设置：商家名称
	 */
	public void setMerchantname(String merchantname) {
		this.merchantname = merchantname;
	}
	/**
	 * 获取：商家名称
	 */
	public String getMerchantname() {
		return merchantname;
	}
	/**
	 * 设置：图片
	 */
	public void setPictures(String pictures) {
		this.pictures = pictures;
	}
	/**
	 * 获取：图片
	 */
	public String getPictures() {
		return pictures;
	}
	/**
	 * 设置：联系电话
	 */
	public void setContactnumber(String contactnumber) {
		this.contactnumber = contactnumber;
	}
	/**
	 * 获取：联系电话
	 */
	public String getContactnumber() {
		return contactnumber;
	}
	/**
	 * 设置：商家地址
	 */
	public void setMerchantaddress(String merchantaddress) {
		this.merchantaddress = merchantaddress;
	}
	/**
	 * 获取：商家地址
	 */
	public String getMerchantaddress() {
		return merchantaddress;
	}
	/**
	 * 设置：经营范围
	 */
	public void setBusinessscope(String businessscope) {
		this.businessscope = businessscope;
	}
	/**
	 * 获取：经营范围
	 */
	public String getBusinessscope() {
		return businessscope;
	}
	/**
	 * 设置：收藏数
	 */
	public void setStoreupnum(Integer storeupnum) {
		this.storeupnum = storeupnum;
	}
	/**
	 * 获取：收藏数
	 */
	public Integer getStoreupnum() {
		return storeupnum;
	}
	/**
	 * 设置：余额
	 */
	public void setMoney(Double money) {
		this.money = money;
	}
	/**
	 * 获取：余额
	 */
	public Double getMoney() {
		return money;
	}

}
